/***********************************************************
* Purpose : Get Top Question
* Author : NuoiNv
* Date: 25/3/2012
* Description: Get Top Question
*/
IF EXISTS ( SELECT * FROM SYSOBJECTS WHERE NAME = 'sp_GetTopQuestion') 
BEGIN
	DROP PROC sp_GetTopQuestion
END
GO
CREATE PROC sp_GetTopQuestion
AS
BEGIN
	SELECT max(ID) As ID FROM Question
END

--exec sp_GetTopQuestion